projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5e929c
)
inspector: Avoid a critical
author
Matthias Clasen
<mclasen@redhat.com>
Sun, 17 Jan 2021 15:55:53 +0000
(10:55 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Sun, 17 Jan 2021 15:55:53 +0000
(10:55 -0500)
Avoid a critical when closing the inspector with the
recorder page open.
gtk/inspector/recorder.c
patch
|
blob
|
history
diff --git
a/gtk/inspector/recorder.c
b/gtk/inspector/recorder.c
index 5b6452f3408563f06ede84488ce95c283cf899dd..c8042ca5806112204ea7343bc7059de8278671be 100644
(file)
--- a/
gtk/inspector/recorder.c
+++ b/
gtk/inspector/recorder.c
@@
-404,6
+404,9
@@
recordings_list_row_selected (GtkListBox *box,
{
GtkInspectorRecording *recording;
+ if (recorder->recordings == NULL)
+ return;
+
if (row)
recording = g_list_model_get_item (recorder->recordings, gtk_list_box_row_get_index (row));
else